package cn.edu.hznu.spring;

import javax.annotation.Resource;

@Component
public class BeanA {
	@Value("title")
	String title;
	@Resource
	BeanB beanB;
	
	public String getTitle() {
		return title;
	}
	public void setTitle(String title) {
		this.title = title;
	}
	public BeanB getBeanB() {
		return beanB;
	}
	public void setBeanB(BeanB beanB) {
		this.beanB = beanB;
	}

}
